-- GENERATED SPELL FOR [Malicious Instructor] --


function spell0_18848(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18848', 5269, 1)
end

function spell1_18848(pUnit, Event) --@Mark of Malice,n/a--
pUnit:FullCastSpellOnTarget(33493,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18848', 31000, 1)
end

function spell2_18848(pUnit, Event) --@Shadow Nova,Self--
pUnit:FullCastSpellOnTarget(33501,pUnit)
pUnit:RegisterEvent('Sorts_18848', 1500, 1)
end

function Sorts_18848(pUnit, Event)
local choix_sorts_18848 = math.random(0, 2)
if choix_sorts_18848 == 0 then
pUnit:RegisterEvent('spell0_18848', 1, 1)
end
if choix_sorts_18848 == 1 then
pUnit:RegisterEvent('spell1_18848', 1, 1)
end
if choix_sorts_18848 == 2 then
pUnit:RegisterEvent('spell2_18848', 1, 1)
end
end

function mob18848_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18848', math.random(1500, 3000), 1)
end

function mob18848_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18848_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18848_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18848, 1, 'mob18848_Action')
RegisterUnitEvent(18848, 2, 'mob18848_Leave')
RegisterUnitEvent(18848, 3, 'mob18848_Kill')
RegisterUnitEvent(18848, 4, 'mob18848_Die')
